Socket
Socket
Sign inDemoInstall

lodash.pullall

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.pullall

The lodash method `_.pullAll` exported as a module.


Version published
Maintainers
3
Created

What is lodash.pullall?

The lodash.pullall package is a utility function from the Lodash library that allows you to remove all instances of specified values from an array. It is particularly useful for array manipulation tasks where you need to filter out certain elements.

What are lodash.pullall's main functionalities?

Remove specified values from an array

This feature allows you to remove all instances of specified values from an array. In the example, the values 2, 4, and 6 are removed from the array [1, 2, 3, 4, 5, 6], resulting in [1, 3, 5].

const _ = require('lodash.pullall');
let array = [1, 2, 3, 4, 5, 6];
let valuesToRemove = [2, 4, 6];
_.pullAll(array, valuesToRemove);
console.log(array); // Output: [1, 3, 5]

Other packages similar to lodash.pullall

Keywords

FAQs

Package last updated on 25 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc